home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
bbs
/
pcsuni1.zip
/
HOHO302.ZIP
/
HOHAUS3.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1997-03-24
|
7KB
|
319 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.2O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String TSTRING003(10)
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
;------------------------------------------------------------------------------
DCloseAll
STRING009 = String(PcbNode())
If (PcbNode() == 0) STRING009 = "A"
STRING010 = GetEnv(STRING009 + "RECNO")
STRING010 = ToInteger(STRING010)
:LABEL001
DCloseAll
DOpen 0, PPEPath() + "HOHAUS.DBF", 0
DGo 0, STRING010
INTEGER001 = DRecNo(0)
DGet 0, "HANDLE", STRING005
DGet 0, "MAIL_NUM", STRING006
Cls
Newlines 6
PrintLn "@POS:20@@X10┌───────────────────────────────────@X19┐@X0F"
PrintLn "@POS:20@@X10│ @X1BR@X13ead your message file @X19│@X0F"
PrintLn "@POS:20@@X10│ @X1BE@X13nter a message to another player @X19│@X0F"
PrintLn "@POS:20@@X10│ @X1BK@X13ill your message file @X19│@X0F"
PrintLn "@POS:20@@X10│ @X1BM@X13ain Menu @X19│@X0F"
PrintLn "@POS:20@@X10│ @X1BG@X13raffiti wall reading @X19│@X0F"
PrintLn "@POS:20@@X10│ @X1BW@X13rite on the graffiti wall @X19│@X0F"
PrintLn "@POS:20@@X10└@X19───────────────────────────────────┘@X0F"
Newline
Print "@POS:20@ Your Choice ", Trim(Mixed(STRING005), " ")
InputStr " @X0A> _", STRING004, 11, 1, "REKMGW", 0 + 8
Select Case (STRING004)
Case "K"
If (Exist(PPEPath() + String(STRING006) + ".MSG")) Then
Delete PPEPath() + String(STRING006) + ".MSG"
Backup 80
ClrEol
PrintLn "@X8CMail file erased!@X0F"
Print " "
Wait
Goto LABEL001
Endif
Goto LABEL001
Case "E"
Backup 80
ClrEol
InputStr "@X0CName of player to send mail to @X0E:@X0F _", STRING007, 11, 25, Mask_Ascii(), 0 + 8
If (STRING007 == "") Goto LABEL001
If (Upper(Trim(STRING007, " ")) == Upper(Trim(STRING005, " "))) Then
Backup 80
ClrEol
PrintLn "@X0CSorry ", Mixed(Trim(STRING005, " ")), ", no need to send yourself mail!@X0F"
Print " "
Wait
Goto LABEL001
Endif
DnCreate 0, PPEPath() + String(PcbNode()) + "-MH.NDX", "HANDLE"
DTop 0
DSeek 0, STRING007
If (DChkStat(0) > 0) Goto LABEL002
INTEGER002 = DRecNo(0)
DnCloseAll 0
Delete PPEPath() + String(PcbNode()) + "MH.NDX"
DGet 0, "HANDLE", STRING007
DGet 0, "MAIL_NUM", STRING008
Goto LABEL003
:LABEL002
Backup 80
ClrEol
Print "@X0CSorry, But that players name was not found, please try again!@X0F"
Print " "
Wait
Goto LABEL001
:LABEL003
INTEGER004 = 1
Cls
PrintLn
PrintLn " @X0BType either @X0A(@X0DQ@X0A)@X0Buit / @X0A(@X0DS@X0A)@X0Bave on a blank line to exit "
PrintLn "@X01┌────────────────────────────────────────────────────────────────────────────┐@X0F"
For INTEGER003 = 1 To 10
If (INTEGER003 <= 9) Print "@X0E ", INTEGER003, "@X0A)@X0B "
If (INTEGER003 == 10) Print "@X0E", INTEGER003, "@X0A)@X0B "
InputStr "_", TSTRING003(INTEGER003), 15, 73, Mask_Ascii(), 512 + 8192 + 64
If (Upper(TSTRING003(INTEGER003)) == "Q") Goto LABEL001
If (Upper(TSTRING003(INTEGER003)) == "S") Break
Inc INTEGER004
Next
Backup 80
ClrEol
PrintLn "@X01└────────────────────────────────────────────────────────────────────────────┘@X0F"
InputStr "@X0BDo you want to make this Anonymous @X0A(@X0DY@X0A/@X0DN@X0A) _", STRING001, 10, 1, "YynN", 0 + 8
If (STRING001 == "Y") Then
STRING002 = "Anonymous"
Else
STRING002 = STRING005
Endif
Backup 80
ClrEol
InputStr "@X0BDo you want to Save this message @X0A(@X0DY@X0A/@X0DN@X0A) _", STRING001, 10, 1, "YynN", 0 + 8
If (STRING001 == "N") Then
For INTEGER003 = 1 To 10
TSTRING003(INTEGER003) = ""
Next
Delete PPEPath() + String(PcbNode()) + "-MH.NDX"
Goto LABEL001
Endif
INTEGER004 = INTEGER004 - 1
FAppend 1, PPEPath() + String(STRING008) + ".msg", 2, 0
FPutLn 1, "@X0E" + String(Date()) + " @X0A " + "From @X0E:@X0D " + STRING002
For INTEGER003 = 1 To INTEGER004
FPutLn 1, " @X0B " + TSTRING003(INTEGER003)
Next
FPutLn 1, "───────────────────────────────────────────────────────────────────────────"
FClose 1
For INTEGER003 = 1 To 10
TSTRING003(INTEGER003) = ""
Next
Delete PPEPath() + String(PcbNode()) + "-MH.NDX"
Backup 80
ClrEol
PrintLn "@X8CMail Sent!@X0F"
Print " "
Wait
Goto LABEL001
Case "R"
If (Exist(PPEPath() + String(STRING006) + ".MSG")) Then
Cls
DispFile PPEPath() + String(STRING006) + ".MSG", 0
Print " "
Wait
Goto LABEL001
Endif
Backup 80
ClrEol
PrintLn " @X8C No mail to read!@X0F"
Newlines 2
Print " "
Wait
Goto LABEL001
Case "G"
Cls
DispFile PPEPath() + "Wall.txt", 0
Print " "
Wait
Goto LABEL001
Case "W"
INTEGER005 = 1
Cls
PrintLn
INTEGER006 = Random(5)
If (INTEGER006 == 0) PrintLn "@X0EHelpful Hint:@X0A If you are going to insult someone, check your spelling!@X0F"
If (INTEGER006 == 1) PrintLn "@X0EHelpful Hint:@X0A To piss someone off, leave Wall messages insulting their mothers!@X0F"
If (INTEGER006 == 2) PrintLn "@X0EHelpful Hint:@X0A Try gambling to get more money - But watch for the cheat!@X0F"
If (INTEGER006 == 3) PrintLn "@X0EHelpful Hint:@X0A Use the most graphic language as possible, Much more effective!@X0F"
If (INTEGER006 == 4) PrintLn "@X0EHelpful Hint:@X0A Form alliances, but never trust anyone!@X0F"
If (INTEGER006 == 5) PrintLn "@X0EHelpful Hint:@X0A A bribe is always useful to buy someones alliance!@X0F"
PrintLn
PrintLn " @X0BType either @X0A(@X0DQ@X0A)@X0Buit / @X0A(@X0DS@X0A)@X0Bave on a blank line to exit "
PrintLn "@X01┌────────────────────────────────────────────────────────────────────────────┐@X0F"
For INTEGER003 = 1 To 10
If (INTEGER003 <= 9) Print "@X0E ", INTEGER003, "@X0A)@X0B "
If (INTEGER003 == 10) Print "@X0E", INTEGER003, "@X0A)@X0B "
InputStr "_", TSTRING003(INTEGER003), 15, 73, Mask_Ascii(), 512 + 8192 + 64
If (Upper(TSTRING003(INTEGER003)) == "Q") Goto LABEL001
If (Upper(TSTRING003(INTEGER003)) == "S") Break
Inc INTEGER005
Next
Backup 80
ClrEol
PrintLn "@X01└────────────────────────────────────────────────────────────────────────────┘@X0F"
InputStr "@X0BDo you want to make this Anonymous @X0A(@X0DY@X0A/@X0DN@X0A) _", STRING001, 10, 1, "YynN", 0 + 8
If (STRING001 == "Y") Then
STRING002 = "Anonymous"
Else
STRING002 = STRING005
Endif
Backup 80
ClrEol
InputStr "@X0BDo you want to Save this wall message @X0A(@X0DY@X0A/@X0DN@X0A) _", STRING001, 10, 1, "YynN", 0 + 8
If (STRING001 == "N") Then
For INTEGER003 = 1 To 10
TSTRING003(INTEGER003) = ""
Next
Delete PPEPath() + String(PcbNode()) + "-MH.NDX"
Goto LABEL001
Endif
INTEGER005 = INTEGER005 - 1
FAppend 1, PPEPath() + "Wall.Txt", 2, 0
FPutLn 1, "@X0E" + String(Date()) + " @X0A " + "From @X0E:@X0D " + STRING002
For INTEGER003 = 1 To INTEGER005
FPutLn 1, " @X0B " + TSTRING003(INTEGER003)
Next
FPutLn 1, "───────────────────────────────────────────────────────────────────────────"
FClose 1
For INTEGER003 = 1 To 10
TSTRING003(INTEGER003) = ""
Next
Backup 80
ClrEol
PrintLn "@X8CMail Sent!@X0F"
Print " "
Wait
Goto LABEL001
Case "M"
DCloseAll
Delete PPEPath() + String(PcbNode()) + "-MH.NDX"
End
End Select
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 5 Cls
; 11 ClrEol
; 8 Wait
; 54 Goto
; 35 Let
; 14 Print
; 28 PrintLn
; 38 If
; 2 DispFile
; 2 FAppend
; 2 FClose
; 6 FPutLn
; 6 Delete
; 8 InputStr
; 2 Inc
; 1 Newline
; 2 Newlines
; 11 Backup
; 1 DOpen
; 3 DCloseAll
; 1 DnCreate
; 1 DnCloseAll
; 1 DTop
; 1 DGo
; 1 DSeek
; 4 DGet
;
;
; ■ Functions used :
;
; 54 +
; 2 -
; 25 ==
; 8 <
; 10 <=
; 1 >
; 16 >=
; 21 !
; 16 &&
; 8 ||
; 6 Upper()
; 4 Trim()
; 1 Random()
; 2 Date()
; 14 String()
; 3 Mask_Ascii()
; 14 PPEPath()
; 8 PcbNode()
; 1 GetEnv()
; 2 Exist()
; 1 ToInteger()
; 2 Mixed()
; 2 DRecNo()
; 1 DChkStat()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 8 For/Next
; 0 While/EndWhile
; 7 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------